Release 10.1A: OpenEdge Development:
Java Open Clients
Passing a TABLE or TABLE-HANDLE as an OUTPUT parameter
An application uses the same model when working with an
OUTPUTTABLEorTABLE–HANDLEparameter as with anINPUT-OUTPUTparameter, by having the client pass a ResultSetHolder object. The data is returned through aResultSetobject from which a meta data object can be obtained. Although the model is the same,TABLE–HANDLEs are different in that they can be Unknown. As a result, you must ensure the client can handle these cases.For an
OUTPUTparameter, you must pass an instance ofcom.progress.open4gl.ResultSetHolder, which is the holder class for aProResultSetobject. The contents of this object are left empty by the client. On return, the holder’s content is set to acom.progress.open4gl.ProResultSetobject. When the method returns, the Java client calls back through this object’s methods to get the data. For more information oncom.progress.open4gl.ProResultSet, see the "Accessing TABLE or TABLE-HANDLE parameters as OUTPUT" section.If the parameter is a
TABLE-HANDLE, the value returned can be unknown. As a result, callinggetResultSetValue()on the holder returns null.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |